home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln1085.arc
/
TABLE1.HDC
< prev
next >
Wrap
Text File
|
1986-02-27
|
14KB
|
199 lines
Table 1. Turbo Graphics Shell. Listed below are GXS functional groups
with codes, Turbo PASCAL procedure names, and a brief description of
each (in lieu of excessive documentation within the PASCAL listings).
Group and GXS Turbo Brief
GSX Function Name Function Procedure Description
Opcode Implemented in Shell
WORKSTATION FUNCTIONS...
open work station 1 openstation loads proper driver, returns
optional device information
close work station 2 closestation terminates graphics I/O to device
clear work station 3 clearstation erase screen, top of form, or load
plotter
update work station 4 updatestation graphics commands being queued by a
driver are immediately executed
LINE DRAWING FUNCTIONS...
polyline 6 polyline connects a sequence of points with
successive lines using current line
color, type, and width
set polyline type 15 setlinetype selects one of at least 5 line styles,
e.g., solid, dashed, dotted, etc.,
for subsequent lines, based upon
argument
set polyline width 16 setlinewidth selects a line width in NDC units for
subsequent lines drawn
POINT MARKING FUNCTIONS...
polymarker 7 polymarker similar to polyline except it places
a current symbol marker at each of
specified points. No lines connect
them. Marker can be set for various
characters.
set polymarker type 18 setmarkertype allows one of + . * o x to be chosen
as the marker type
set polymarker scale 19 setmarkerscale marker can be chosen with a specified
height in NDC units. Returns actual
height approx to specified height.
GENERALIZED DRAWING PRIMITIVES...
bar 11 bar draws bar with lower left and upper
contrl[6]=1 right NDC coords specified. Fills
with current fill area attributes.
arc 11 arc draws arc from one point to another
contrl[6]=2 with several ways to specify it.
(check which devices support this
feature)
2
pie slice 11 pie similar to arc but connects arc to
contrl [6] = 3 center and uses current fill
attributes. (check for device
support)
circle 11 circle draws circle using center and radius
contrl [6] = 4 and uses current fill attributes
FILLED AREA FUNCTIONS...
fill area 9 fillarea similar to polyline but fills polygon
with current fill color. Also con-
nects first and last point specified.
If fill is not supported, it outlines
polygon using current color.
cell array 10 cellarray define a rectangular array of cells
and each cell with a choice of any
current colors.
set fill interior 23 setfillstyle choose current fill style as solid,
style hollow, hatch, or pattern
set fill interior 24 setfillpattern choose pattern style (if set) from
pattern type lightest to darkest dither
set fill interior 24 setfillhatch choose hatch style (if set) from
hatch type several options
COLOR FUNCTIONS...
set color 14 setcolor define RGB values for color indices
representation (Rainbow 0-15)
set polyline 17 setlinecolor choose one of the current RGB
color index colors defined by setcolor for subse-
quent lines drawn.
set polymarker 20 setmarkercolor choose one of the current colors for
color index subsequent markers display
set text color 22 settextcolor choose a current color for subsequent
index text display
set fill color 25 setfillcolor choose a current color for subsequent
index polygon fills
TEXT FUNCTIONS...
Text 8 showtext display string of characters on
current device
set character 12 settextheight choose height in NDC units for subse-
height quent text
set character up 13 settextangle choose baseline angle for text in
vector NDC units (0-3600), 0=east
set text font 21 setfont choose type styles for text.
Styles are available from informa-
tion returned in the OPENSTATION
call.
3
MODE CONTROL FUNCTIONS...
set writing 32 setwritingmode select pixel replacement mode for
mode fills (replace, overstrike, comple-
ment, erase)
INPUT FUNCTIONS...
set input 33 setinputmode select request or sample mode and the
mode type device (locator, valuator,
choice, string)
input locator 28 inputlocator return position of locator (NDC) also
select specific device (pen, mouse,
tablet, ejtc.) for use in request or
sample mode
input valuator 28 inputvaluator return current value (0-32767) of
valuator device. Also, select
valuator device for use in request
mode or sample mode
input choice 30 inputchoice return measure of specified choice
device (function keys, etc.) in
request or sample mode
input string 31 inputstring return string and length from
string input device (keybd, etc.)
in request or sample mode.
STATUS INQUIRY FUNCTIONS...
Inquire Color 26 inquirecolors returns RGB intensities for a
Representation requested color index, actual or
specified